Skip to content

Conversation

davidhewitt
Copy link
Member

As per #5468 (comment) this actions the planned deprecation of .downcast() and similar methods.

I reverted their behavioural change in #5387 so that these methods will not change when users upgrade, just be deprecated.

Once they migrate to the .cast() functions they will then get better ergonmics:

@davidhewitt
Copy link
Member Author

Note to self: I think this probably warrants a migration guide entry (maybe can be written in #5468 and describe both).

Copy link

codspeed-hq bot commented Sep 27, 2025

CodSpeed Performance Report

Merging #5472 will not alter performance

Comparing davidhewitt:deprecate-downcast (472c453) with main (df974a1)

Summary

✅ 98 untouched

@davidhewitt davidhewitt enabled auto-merge October 5, 2025 21:18
@davidhewitt davidhewitt added this pull request to the merge queue Oct 8, 2025
Merged via the queue into PyO3:main with commit 97437c7 Oct 9, 2025
43 of 44 checks passed
@davidhewitt davidhewitt deleted the deprecate-downcast branch October 9, 2025 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants